<div class="Box">	<div class="BoxTitle">		<h2 style="width:200px;">Новости</h2>	</div><?php$URL=Yii::app()->request->baseUrl;foreach( $news1 as $key){	echo"<div class='BoxSubTitle'>";	echo "<p>".$key->date." <a href='/news/view/".$key->id_news."'>".$key->title."</a></p></div>";	echo "<div class='BoxContent'>";	echo"<img src=".$URL."/images/news/".$key->img." width='60' height='60'>";	$text=substr($key->text, 0, 500);	echo "<p>".$text."...</p>";	echo"</div><br/>";}?></div><!--end news block--><div id="right">	<div id="type-news">	<?php		foreach( $type as $key)		{			//echo $key->id_type.'<br>';			//echo $key->type.'<br>';		}	?>	</div></div></div>